<!-- body onload="document.registration.userid.focus();"-->
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@taglib prefix="user" uri="/WEB-INF/tags/ErrorTag.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<t:basicTemplate pageTitle="SWIMv2 - ${userName} - Help Request">
	<jsp:attribute name="extrahead">
		<link rel='stylesheet' href='css/helpRequest.css' type='text/css' />
	</jsp:attribute>

	<jsp:body>
        	<h1>Help Request Form</h1>
			
			<t:errorAndMessage message="${message}"></t:errorAndMessage>
			<div class="error-style">
				<user:errors error="${param.error}"></user:errors>
			</div>
				
		<div id="help">
			<img src="img/help.jpg" alt="help" id="help_img" />
		</div>
	
		<div id="form">
			<form name='help_request' onSubmit="" method="post"
				action="./proceedHelpRequest">
				<ul>

					<li><label for="userid_helper" class="large_label">User:</label></li>
					<li><input type="text" name="userid_helper" size="50" value="${param.username}" /></li>
						
					<li><label for="date" class="large_label">For the day:</label></li>
					<li><input type="date" name="date" size="50" value="" /></li>
					
					<li><label for="title" class="large_label">Title of Help Request:</label></li>
					<li><input type="text" name="title" size="50" value="" /></li>
						
					<li><label for="explanation" class="large_lable">Explain your problem:</label></li>
					<li><textarea rows="4" cols="50" name="explanation"></textarea></li>
	
					<li><input type="submit" name="submit" value="Send" /></li>
				</ul>
			</form>
			
		</div>
	</jsp:body>
</t:basicTemplate>

